﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class FuLei
    {
        private string heroName;
        private string heroInfo;
        private string roleName;
        private int gongji;
        private int fangyu;
        private int sudu;
        private string jineng;

        public FuLei(string heroName, string heroInfo, string roleName, int gongji, int fangyu, int sudu, string jineng)
        {
            this.heroName = heroName;
            this.heroInfo = heroInfo;
            this.roleName = roleName;
            this.gongji = gongji;
            this.fangyu = fangyu;
            this.sudu = sudu;
            this.jineng = jineng;
        }

        public void JiNeng()
        {
            Console.WriteLine("英雄名称：" + this.heroName);
            Console.WriteLine("英雄简介：" + this.heroInfo);
            Console.WriteLine("角色名称：" + this.roleName);
            Console.WriteLine("攻击力：" + this.gongji);
            Console.WriteLine("防御力：" + this.fangyu);
            Console.WriteLine("速度：" + this.sudu);
            Console.WriteLine("技能：" + this.jineng);
        }
    }

}

